<template>
	<view class="with-navbar">
		<juhe-navbar :options="navbarData"></juhe-navbar>
		<juhe-all></juhe-all>

		<view class="ul with-have-no-mt">
			<view class="title-box"><view class="title">UI组件</view></view>
			<navigator class="li-box" v-for="(one, index) of list" :key="index" :url="one.url">
				<view class="li">
					<image src="../../static/logo.png" class="icon" mode=""></image>
					<view class="name">{{ one.name }}</view>
					<view class="more iconfont" style="flex: 1;">&#xe856;</view>
				</view>
			</navigator>
		</view>

		<view class="ul">
			<view class="title-box"><view class="title">模板</view></view>
			<navigator
				class="li-box"
				v-for="(one, index) of listTpl"
				:key="one.name"
				:url="one.url || ''"
			>
				<view class="li">
					<image src="../../static/logo.png" class="icon" mode=""></image>
					<view class="name">{{one.name}}</view>
					<view v-if="one.url" class="more iconfont" style="flex: 1;">&#xe856;</view>
				</view>
			</navigator>
		</view>
	</view>
</template>

<script>
import JuheNavbar from '../../components/juhe-navbar.vue';
export default {
	components: {
		JuheNavbar
	},
	computed: {
		i18() {
			// return this.$t('message');
		},
		com() {
			return 9999;
		}
	},
	data() {
		return {
			listTpl: [
				{ name: '首页模板', url: '../tpl-index/tpl-index' },
				{ name: '首页模板(原生Weex)', url: '../tpl-index/tpl-index' },
				{ name: '阅读模板', url: '../tpl-bookstore/tpl-bookstore' },
			],
			list: [
				{ name: '列表', url: '../juhe-listpage/juhe-listpage' },
				{ name: '交互', url: '../juhe-modals/juhe-modals' },
				{ name: '导航栏', url: '../juhe-navbar/juhe-navbar' }
			],
			navbarData: {
				leftIcons: [
					{
						imageUrl: require('../../static/logo.png')
					}
				],
				rightIcons: [],
				tabs: {
					list: [
						{
							// text: this.$t('message').UIName
							text: 111
						}
					]
				}
			}
		};
	},
	onLoad() {},
	methods: {}
};
</script>

<style></style>
